Skip to content

Conversation

@b4handjr
Copy link
Contributor

Because

  • We want to make sure we can publish and unpublish to preview correctly

This commit

  • Adds a test to ensure we can publish and unpublish from preview
  • Adds the ability to unpublish from preview for local environments including tests

Fixes #8436

r["id"]: r
for r in self.kinto_http_client.get_records(
bucket=settings.KINTO_BUCKET_MAIN, collection=self.collection
bucket=self.read_bucket, collection=self.collection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh @b4handjr I think should make changes for local environment only so that we don't break the prod and stage, you can add a check and change the bucket accordingly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I technically didn't break any tests... 🤐

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but test doesn't include our stage and prod, I am just worried about that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh @yashikakhurana I don't think this changes which environment it goes to, it's just whether it's in the main or main-workspace collections in the local test kinto 🙏

@b4handjr b4handjr marked this pull request as ready for review October 27, 2025 16:21
Copy link
Collaborator

@jaredlockhart jaredlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya this is great ty @b4handjr 🙏 🎉

r["id"]: r
for r in self.kinto_http_client.get_records(
bucket=settings.KINTO_BUCKET_MAIN, collection=self.collection
bucket=self.read_bucket, collection=self.collection
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh @yashikakhurana I don't think this changes which environment it goes to, it's just whether it's in the main or main-workspace collections in the local test kinto 🙏

@b4handjr b4handjr added this pull request to the merge queue Oct 28, 2025
Merged via the queue into main with commit 2b5de93 Oct 28, 2025
17 checks passed
@b4handjr b4handjr deleted the fix-8436 branch October 28, 2025 21:01
@sentry
Copy link

sentry bot commented Oct 30, 2025

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration test for publishing and unpublishing to preview

4 participants